#define _CRT_SECURE_NO_WARNINGS

#include "Queue.h"

QueueTest()
{
	Queue pq;
	QueueInit(&pq);

	QueuePush(&pq, 1);
	QueuePush(&pq, 2);
	QueuePush(&pq, 3);
	QueuePush(&pq, 4);
	QueuePush(&pq, 5);
	QueuePrint(&pq);

	QueuePop(&pq);
	QueuePrint(&pq);
	QueuePop(&pq);
	QueuePrint(&pq);
	QueuePop(&pq);
	QueuePrint(&pq);
	QueuePop(&pq);
	QueuePrint(&pq);

	printf("%d\n", QueueFront(&pq));

	printf("%d\n", QueueBack(&pq));

	QueueDestroy(&pq);
}

int main()
{
	QueueTest();

	return 0;
}
